/***********************************************************************/
/* Open Visualization Data Explorer                                    */
/* (C) Copyright IBM Corp. 1989,1999                                   */
/* ALL RIGHTS RESERVED                                                 */
/* This code licensed under the                                        */
/*    "IBM PUBLIC LICENSE - Open Visualization Data Explorer"          */
/***********************************************************************/

#ifndef _history_h
#define _history_h

#if defined( __cplusplus ) || defined( c_plusplus )
#define EXTERN extern "C"
#else
#define EXTERN extern
#endif

typedef struct HistoryNodeType_
{
  Widget outputWidget;
  Widget menu;
  Widget button;
  int type;
  char filename[127];
  char label[127];
  int position;
  struct HistoryNodeType_* next;
  struct HistoryNodeType_* prev;

} HistoryNodeType;

typedef struct
{
  HistoryNodeType* head;
  HistoryNodeType* tail;
  HistoryNodeType* current;
  int length;

} HistoryList;

EXTERN
HistoryList* NewHistoryList();

EXTERN
Widget DXCreatePopupMenu( Widget parent );

#endif /* _history_h */
